// 身份管理
import request from '@/router/axios'

//展示表格
export function timeEdit(query) {
    return request({
        url: '/campus/timeframeplan/all',
        method: 'get',
        params: query
    })
}

// 根据id查询展示时间组信息
export function timeplanObj(id) {
    return request({
        url: '/campus/timeplan/' + id,
        method: 'get',
    })
}

//修改时间组信息
export function EdittimePlan(obj) {
    return request({
        url: '/campus/timeplan',
        method: 'put',
        data: obj
    })
}

//添加时间组和时间段关联
export function AddtimeframePlan(obj) {
    return request({
        url: '/campus/timeframeplan/saveBatch',
        method: 'post',
        data: obj
    })
}

